package com.example.oop.Repository;

import com.example.oop.POJO.ChessPlay;
import com.example.oop.POJO.Player;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface PlayerRepository extends JpaRepository<Player, Integer> {
    Optional<Player> findByUsername(String username);

    List<Optional<Player>> findByStatus(Integer status);
//
//    Optional<ChatRoom> deleteByUsername(String username);
}
